package com;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.stereotype.Service;

@Service
public class HystrixServiceImp implements HystrixService {
    @Override
    @HystrixCommand(fallbackMethod = "error")
    public String hystrixHello() {
        int a = 1/0;
        return "hystrixHello service";
    }

    public String error(){
        return "hystrixHello error";
    }
}
